<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of buscarTitular
 *
 * @author Suco
 */
include_once '../core/InterfazDatos.php';
include_once '../core/Conexion.php';
include_once '../core/Controlador.php';
include_once '../core/ControladorSet.php';
class buscarTitular extends Controlador {
    //put your code here
    public function ejecutar() {
        
        $consulta=$this->conexion->consultaLibre("SELECT *FROM TBL_TITULAR WHERE TIT_CEDULA LIKE '".$_REQUEST['cedula']."' ");
        $fila=  mysql_fetch_array($consulta);
        $numFilas=  mysql_num_rows($consulta);
        
        if($numFilas==0){
            
            echo('0');
        }else
              $consultaC=$this->conexion->consultaLibre("SELECT *FROM TBL_DIVISION WHERE DIV_ID='".$fila[0]."'");
              $filac=mysql_fetch_array($consultaC);
            echo($fila[1]."+".$fila[4]."+".$filac[1]);
        
        }
        
    }
$controlador=new buscarTitular();
$controlador->ejecutar();

